package taller2.view.menus;

import java.awt.GridBagLayout;

import javax.swing.JPanel;

import taller2.utils.Point;
import taller2.utils.Utils;
import taller2.view.components.CharacterBox;
import taller2.view.components.HighlightBar;

public class CodeMenu extends JPanel{

        private static final long serialVersionUID = 1L;       
        private HighlightBar highlightBar;
        
        public CodeMenu(CodeBrowser br,CharacterBox panelTxt, int fontSize,String codePath){
        	this.highlightBar = new HighlightBar(br, panelTxt);
        	
            setLayout(new GridBagLayout());
            Utils.addComponent(this,highlightBar.getFirstRow(),1, 0, new Point(0, 0));
            Utils.addComponent(this,highlightBar.getSecondRow(),1, 0, new Point(0, 1));
        } 
        
        public void setAutohighlightButton(boolean state){
        	highlightBar.setAutohighlightButton(state);
        }
    
}

